import request from '@/utils/request';

// 上传文件
export function uploadFile(data = {}, type) {
  return request({
    url:`/server/file/upload`,
    method:'post',
    data
  })
}

// 删除文件
export function deleteFile(filePath) {
  return request({
    url:`/server/file/delete`,
    method:'get',
    params: { 'filePath': filePath }
  })
}

// 下载用户导入模板文件
export function downloadUserImportTemplate() {
  return request({
    url:`/server/file/downloadUserImportTemplate`,
    method:'get'
  })
}

// 下载组织导入模板文件
export function downloadOrganizationImportTemplate() {
  return request({
    url:`/server/file/downloadOrganizationImportTemplate`,
    method:'get'
  })
}
